AuthZenService
[Experimental] Search for subjects with access to a resource
[Experimental] The SubjectSearch API returns all subjects that have a specific action (relation) on a given resource. This is useful for answering questions like “Who can read this document?” or “Who can administer this folder?”
Results can be filtered by subject type and support pagination for large result sets.
Examples
Find all users who can read a document
{
"resource": {"type": "document", "id": "roadmap"},
"action": {"name": "can_read"},
"subject": {"type": "user"}
}
Response:
{
"results": [
{"type": "user", "id": "anne"},
{"type": "user", "id": "bob"},
{"type": "user", "id": "charlie"}
],
"page": {"count": 3}
}
Paginated search with limit
{
"resource": {"type": "folder", "id": "engineering"},
"action": {"name": "can_view"},
"subject": {"type": "user"},
"page": {"limit": 10}
}
Continue from previous page
{
"resource": {"type": "folder", "id": "engineering"},
"action": {"name": "can_view"},
"subject": {"type": "user"},
"page": {"token": "eyJsYXN0X2lkIjoiMTAwIn0=", "limit": 10}
}
POST
curl
Path Parameters
Body
application/json
Last modified on September 28, 2026